﻿using Architecture.Domain.Entity;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Architecture.Domain.RBAC
{
    public class Leaved : Approval
    {
        /// <summary>
        /// 请假条主键
        /// </summary>
        [Key]
        public int LeaveId { get; set; }

        /// <summary>
        /// 登录人姓名
        /// </summary>
        public string? UserName { get; set; }

        /// <summary>
        /// 部门ID
        /// </summary>
        public int Sectorid { get; set; }

        /// <summary>
        /// 请假类型
        /// </summary>
        public string? LeaveType { get; set; }

        /// <summary>
        /// 请假时间
        /// </summary>
        public string? LeaveTime { get; set; }

        /// <summary>
        /// 报道时间
        /// </summary>
        public DateTime ReportedTime { get; set; }

        /// <summary>
        /// 总工时
        /// </summary>
        public decimal? TotaWorkTime { get; set; }
        /// <summary>
        /// 请假事由
        /// </summary>
        public string? LeaveReason { get; set; }

        /// <summary>
        /// 部门领导
        /// </summary>
        public string? DepartmentHeader { get; set; }

        /// <summary>
        /// 审批状态
        /// </summary>
        public bool LeaveState { get; set; } = false;
    }
}
